package com.janko.springbootbase.basic.enumTest;

/**
 * @Author nyk
 * @Date 2023/2/2 10:34
 * @Version 1.0
 * @Desc
 */
public enum VehicleColor {
    Red(0, "红色"),
    Black(1, "黑色"),
    Write(2, "白色");
    private Integer index;
    private String desc;

    private VehicleColor(Integer index, String desc) {
        this.index = index;
        this.desc = desc;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
